From: Peter Michael Green Date: Sat, 11 Jan 2020 10:14:46 +0000 (+0000) Subject: set correct float abi settings for armel and armhf X-Git-Tag: archive/raspbian/1%7.0.1-10+rpi1^2~46 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=72ff2d7f7d6f28d5679a8c8d2fa3ad26f1750a7c;p=llvm-toolchain-7.git set correct float abi settings for armel and armhf debian armel supports systems that don't have a fpu so should use a "float abi" setting of soft by default. Debian armhf needs a float abi setting of "hard" Gbp-Pq: Name 26-set-correct-float-abi.diff --- diff --git a/clang/lib/Driver/ToolChains/Arch/ARM.cpp b/clang/lib/Driver/ToolChains/Arch/ARM.cpp index 886d947c5..491af16f6 100644 --- a/clang/lib/Driver/ToolChains/Arch/ARM.cpp +++ b/clang/lib/Driver/ToolChains/Arch/ARM.cpp @@ -246,7 +246,7 @@ arm::FloatABI arm::getARMFloatABI(const ToolChain &TC, const ArgList &Args) { case llvm::Triple::MuslEABI: case llvm::Triple::EABI: // EABI is always AAPCS, and if it was not marked 'hard', it's softfp - ABI = FloatABI::SoftFP; + ABI = FloatABI::Soft; break; case llvm::Triple::Android: ABI = (SubArch == 7) ? FloatABI::SoftFP : FloatABI::Soft;